using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class BasicControlls : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    string labelString = "not clicked";

    // Update is called once per frame
    void Update()
    {
        
    }

    private void OnGUI()
    {
        GUI.Box(new Rect(10, 10, 100, 100), "MyBoxTitle");

        if(GUI.Button(new Rect(10, 120, 80, 30), "ClickMe"))
        {
            labelString = "Button Clicked";
        }
        
        GUI.Label(new Rect(10, 160, 200, 100),"Label:" + labelString);
    }
}
